package com.zzld.modules.autoinn.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.zzld.core.service.BaseServiceImpl;
import com.zzld.modules.autoinn.entity.Product;
import com.zzld.modules.autoinn.entity.UserRegister;
import com.zzld.modules.autoinn.mapper.UserRegisterMapper;
import com.zzld.modules.autoinn.service.IUserRegisterService;

@Service("userregisterService")
public class UserRegisterServiceImpl  extends BaseServiceImpl<UserRegister> implements IUserRegisterService{

	@Autowired
	private UserRegisterMapper userRegisterMapper;
	
	public PageInfo list(Map map,int PageNum,int PageSize){
		Map<String, Object> params = map;
		// 以name字段升序排序
		PageHelper.startPage(PageNum, PageSize);
		List<UserRegister> list = userRegisterMapper.selectpage(map);
		PageInfo page = new PageInfo(list);

		return page;
	}




	
}
